package com.aaa.behind.service.impl;

import com.aaa.behind.dao.GGoodsMapper;
import com.aaa.behind.service.IGGoodsService;
import com.aaa.entity.BBusinessInfo;
import com.aaa.entity.GGoods;
import com.aaa.entity.GSort;
import com.aaa.entity.Map;
import com.aaa.util.PageInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author whj
 * @since 2023-01-30
 */
@Service
public class GGoodsServiceImpl extends ServiceImpl<GGoodsMapper, GGoods> implements IGGoodsService {

    @Autowired
    private GGoodsMapper gGoodsMapper;

    @Override
    public IPage findAll(PageInfo pageInfo, Map map) {
        IPage all = gGoodsMapper.findAll(pageInfo, map);
        return all;
    }


    @Override
    public List<GSort> findAllSort() {
        return gGoodsMapper.findAllSort();
    }

    @Override
    public List<BBusinessInfo> b_business_info() {
        return gGoodsMapper.b_business_info();
    }


}
